const router = require('express').Router();
const { getAllGoods, getOneGood } = require('../controller/goods')
const { addGoods, getGoods, delGoods, updateCar } = require('../controller/goodscart')
    /* GET home page. */
    //select.php=======>goods/list
    //   api/goods/list

router.get('/goods/list', getAllGoods);
router.post('/goods/selectOne', getOneGood);

router.post('/goodscart/addcart', addGoods);
router.post('/goodscart/delcart', delGoods);
router.post('/goodscart/selectcart', getGoods);
router.post('/goodscart/updatecarcount', updateCar);


module.exports = router;